<?php include("include.php");?>
<?php 
$jobid = $_GET['jid'];
$job = job::getJobById($jobid);
?>
<div class="form">
<form enctype="multipart/form-data" action="addQuarkAction.php" method="post" id="createQuarkForm">
	  <input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
 <h3>Create a Quark</h3>
<table>
	<tr>
		<td class="label">Job</td>
		<td class="input"><?php echo $job->getTitle();?><input type="hidden" name="jobid" value="<?php echo $job->getId();?>" /></td>
	</tr>
	<tr>
		<td class="label" style="width:200px;">Threshold Count</td>
		<td class="input"><input name="thresholdcount" type="text" /></td>
	</tr>    
	<tr>
		<td class="label" style="width:200px;">Upload Ressource</td>
		<td class="input"><input name="uploaded_file" type="file" /></td>
	</tr>
    <tr>
    	<td>&nbsp;</td>
        <td><img src="images/create.png" onclick="javascript:document.getElementById('createQuarkForm').submit()" /></td>
    </tr>    
</table>    
</form>
</div>

<?php include("includes/footer.php");?>